//
//  carModel.m
//  Homework_19
//
//  Created by 徐昊 on 16/8/9.
//  Copyright © 2016年 徐昊. All rights reserved.
//

#import "carModel.h"

@implementation carModel

- (instancetype)initWithDictionary:(NSDictionary *)dictionary {
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}
+ (carModel *)carModelWithDictionary:(NSDictionary *)dictionary {
    return [[carModel alloc] initWithDictionary:dictionary];
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"id"]) {
        _car_id = value;
    }
}
- (id)valueForKey:(NSString *)key {
    return nil;
}
@end
